package com.jiayou.im.entity

import com.baomidou.mybatisplus.annotation.IdType
import com.baomidou.mybatisplus.annotation.TableId
import com.baomidou.mybatisplus.annotation.TableName
import com.baomidou.mybatisplus.extension.activerecord.Model
import lombok.Data
import lombok.EqualsAndHashCode
import java.io.Serializable
import java.time.LocalDateTime

/**
@author 李 双
@data   2020-11-20  11:47
@info
 */

/**
 *
 *
 *
 *
 *
 * @author lishuang
 * @since 2020-11-20
 */
@TableName("im_operation")
data class Operation(
    @TableId("id", type = IdType.AUTO)
    var id: Int? = null,
    /**
     * 用户1
     */
    var id1: String? = null,

    /**
     * 用户2
     */
    var id2: String? = null,

    /**
     * 1添加好友
     * 2删除好友
     */
    var operation: Int? = null,

    /**
     * 0未处理，1被处理
     */
    var state: Int? = null,

    /**
     * 创建时间
     */
    var createTime: LocalDateTime? = null
) : Model<Operation>(), Serializable {


    companion object {
        const val serialVersionUID = 1L
    }
}
